<div id="maincontent">

<%= render :partial => "shared_common_files/data_area_help_bar" %>

	<% for name in [:simplemsg] %>
    	<% if flash[name] %>
      		<%= "<div class='message-justmsg'> #{flash[name]} </div>" %>
    	<% end %>
  	<% end %>
  
    <% for name in [:notice, :warning, :message] %>
    	<% if flash[name] %>
      		<%= "<div class='message-fatal'> #{flash[name]} </div>" %>
    	<% end %>
  	<% end %>
  	


	<% if (@module_name == 'Leads')%>
		
		<h2>SugarCRM > Lead > Show</h2>
			
		<%= start_form_tag({:action => ''},{:class => 'appform'}) %>
			<fieldset>
				
				<h3>The details are as following</h3>
				
				<input class="f-name" type="hidden" name="module_name" required="true" value="<%=@module_name%>" size="30" / -->
				
				<label for="name"><b>Id :</b>
			  		<%=@responce%>
			  	</label>
				
				<label for="name"><b>First Name :</b>
			  		<%=@first_name%>
			  	</label>
		      
		      	<label for="name"><b>Last Name :</b>
					<%=@last_name%>
			  	</label>
				
				<label for="name"><b>Email Address :</b>
			  		<%=@email_address%>
			  	</label>
		      
		      	<div class="f-submit-wrap">
		
				<%if(canRequestLink("integration","newrecord"))%>
					<a href="/integration/newrecord?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="New Lead"/ --><img src='/themes/odotclassic/images/btn_newlead.png' alt="New"></a>
				<%end%>
		
				<%if(canRequestLink("integration","objectdetail"))%>
					<a href="/integration/objectdetail?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="List Leads"/ --><img src='/themes/odotclassic/images/btn_listleads.png' alt="List"></a>
				<%end%>

				<%if(canRequestLink("integration","browse_objects"))%>
					<a href="/integration/browse_objects?node=sugarcrm" type="button" /><!-- input type="button" value="Browse Objects"/ --><img src='/themes/odotclassic/images/btn_brobjects.png' alt="Browse"></a>
				<%end%>
	  		
	  			</div>
			  	
			</fieldset>
		<%end_form_tag%>
	
	
	<% elsif (@module_name == 'Contacts')%>
		
		<h2>SugarCRM > Contact > Show</h2>
			
		<%= start_form_tag({:action => ''},{:class => 'appform'}) %>
			<fieldset>
				
				<h3>The details are as following</h3>
				
				<input class="f-name" type="hidden" name="module_name" required="true" value="<%=@module_name%>" size="30" / -->
				
				<label for="name"><b>Id :</b>
			  		<%=@responce%>
			  	</label>
				
				<label for="name"><b>First Name :</b>
			  		<%=@first_name%>
			  	</label>
		      
		      	<label for="name"><b>Last Name :</b>
					<%=@last_name%>
			  	</label>
				
				<label for="name"><b>Email Address :</b>
			  		<%=@email_address%>
			  	</label>
		      
		      	<div class="f-submit-wrap">
		
				<%if(canRequestLink("integration","newrecord"))%>
					<a href="/integration/newrecord?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="New Contact"/ --><img src='/themes/odotclassic/images/btn_newcon.png' alt="New"></a>
				<%end%>
		
				<%if(canRequestLink("integration","objectdetail"))%>
					<a href="/integration/objectdetail?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="List Contacts"/ --><img src='/themes/odotclassic/images/btn_listcont.png' alt="List"></a>
				<%end%>

				<%if(canRequestLink("integration","browse_objects"))%>
					<a href="/integration/browse_objects?node=sugarcrm" type="button" /><!-- input type="button" value="Browse Objects"/ --><img src='/themes/odotclassic/images/btn_brobjects.png' alt="Browse"></a>
				<%end%>
	  		
	  			</div>
			  	
			</fieldset>
		<%=end_form_tag%>
		
	<% elsif (@module_name == 'Accounts')%>
		
		<h2>SugarCRM > Account > Show</h2>
			
		<%= start_form_tag({:action => ''},{:class => 'appform'}) %>
			<fieldset>
				
				<h3>The details are as following</h3>
				
				<input class="f-name" type="hidden" name="module_name" required="true" value="<%=@module_name%>" size="30" / -->
				
				<label for="name"><b>Id :</b>
			  		<%=@responce%>
			  	</label>
				
				<label for="name"><b>Account Name :</b>
			  		<%=@account_name%>
			  	</label>
		      
		      	<label for="name"><b>Phone Number :</b>
					<%=@phone_number%>
			  	</label>
				
				<label for="name"><b>Website :</b>
			  		<%=@website%>
			  	</label>
		      
		      	<div class="f-submit-wrap">
		
				<%if(canRequestLink("integration","newrecord"))%>
					<a href="/integration/newrecord?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="New Account"/ --><img src='/themes/odotclassic/images/btn_newacc.png' alt="New"></a>
				<%end%>
		
				<%if(canRequestLink("integration","objectdetail"))%>
					<a href="/integration/objectdetail?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="List Accounts"/ --><img src='/themes/odotclassic/images/btn_listacc.png' alt="List"></a>
				<%end%>

				<%if(canRequestLink("integration","browse_objects"))%>
					<a href="/integration/browse_objects?node=sugarcrm" type="button" /><!-- input type="button" value="Browse Objects"/ --><img src='/themes/odotclassic/images/btn_brobjects.png' alt="Browse"></a>
				<%end%>
	  		
	  			</div>
			  	
			</fieldset>
		<%=end_form_tag%>
		
	<% elsif (@module_name == 'Opportunities')%>
		
		<h2>SugarCRM > Opportunity > Show</h2>
			
		<%= start_form_tag({:action => ''},{:class => 'appform'}) %>
			<fieldset>
				
				<h3>The details are as following</h3>
				
				<input class="f-name" type="hidden" name="module_name" required="true" value="<%=@module_name%>" size="30" / -->
				
				<label for="name"><b>Id :</b>
			  		<%=@responce%>
			  	</label>
				
				<label for="name"><b>Opportunity Name :</b>
			  		<%=@opportunity_name%>
			  	</label>
		      
		      	<label for="name"><b>Amount :</b>
					<%=@amount%>
			  	</label>
				
				
		      	<div class="f-submit-wrap">
		
				<%if(canRequestLink("integration","newrecord"))%>
					<a href="/integration/newrecord?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="New Opportunity"/ --><img src='/themes/odotclassic/images/btn_newopp.png' alt="New"></a>
				<%end%>
		
				<%if(canRequestLink("integration","objectdetail"))%>
					<a href="/integration/objectdetail?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="List Opportunities"/ --><img src='/themes/odotclassic/images/btn_listopps.png' alt="List"></a>
				<%end%>

				<%if(canRequestLink("integration","browse_objects"))%>
					<a href="/integration/browse_objects?node=sugarcrm" type="button" /><!-- input type="button" value="Browse Objects"/ --><img src='/themes/odotclassic/images/btn_brobjects.png' alt="Browse"></a>
				<%end%>
	  		
	  			</div>
			  	
			</fieldset>
		<%=end_form_tag%>
		
	<% elsif (@module_name == 'Cases')%>
		
		<h2>SugarCRM > Case > Show</h2>
			
		<%= start_form_tag({:action => ''},{:class => 'appform'}) %>
			<fieldset>
				
				<h3>The details are as following</h3>
				
				<input class="f-name" type="hidden" name="module_name" required="true" value="<%=@module_name%>" size="30" / -->
				
				<label for="name"><b>Id :</b>
			  		<%=@responce%>
			  	</label>
				
				<label for="name"><b>Case Name :</b>
					<%=@case_name%>
			  	</label>
				
				
		      	<div class="f-submit-wrap">
		
				<%if(canRequestLink("integration","newrecord"))%>
					<a href="/integration/newrecord?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="New Case"/ --><img src='/themes/odotclassic/images/btn_newcase.png' alt="New"></a>
				<%end%>
		
				<%if(canRequestLink("integration","objectdetail"))%>
					<a href="/integration/objectdetail?node=sugarcrm&name=<%=@module_name%>"><!-- input type="button" value="List Cases"/ --><img src='/themes/odotclassic/images/btn_listcases.png' alt="List"></a>
				<%end%>

				<%if(canRequestLink("integration","browse_objects"))%>
					<a href="/integration/browse_objects?node=sugarcrm" type="button" /><!-- input type="button" value="Browse Objects"/ --><img src='/themes/odotclassic/images/btn_brobjects.png' alt="Browse"></a>
				<%end%>
	  		
	  			</div>
			  	
			</fieldset>
		<%=end_form_tag%>
		
	<% elsif (@module_name == 'Project')%>
		
		<h2>SugarCRM > Project > Show</h2>
			
		<%= start_form_tag({:action => ''},{:class => 'appform'}) %>
			<fieldset>
				
				<h3>The details are as following</h3>
				
				<input class="f-name" type="hidden" name="name" required="true" value="<%=@name%>" size="30" / -->
				
				<label for="name"><b>Id :</b>
			  		<%=@responce%>
			  	</label>
				
				<label for="name"><b>Project Name :</b>
					<%=@project_name%>
			  	</label>
				
				
		      	<div class="f-submit-wrap">
		
				<%if(canRequestLink("integration","browse_projects"))%>
					<a href="/integration/browse_projects?node=basecamp" type="button" /><!-- input type="button" value="Project List of Basecamp"/ --><img src= '/themes/odotclassic/images/btn_basecproj.png' alt=''></a>
				<%end%>
						
				<%if(canRequestLink("integration","objectdetail"))%>
					<a href="/integration/objectdetail?node=sugarcrm&name=Project"><!-- input type="button" value="Project List of SugarCRM"/ --><img src= '/themes/odotclassic/images/btn_sugarcproj.png' alt=''></a>
				<%end%>

				<!-- %if(canRequestLink("integration","browse_objects"))% -->
					<!-- a href="/integration/browse_objects?node=sugarcrm" type="button" /><input type="button" value="Browse Objects of SugarCRM"/></a -->
				<!-- %end% -->
	  		
	  			</div>
			  	
			</fieldset>
		<%=end_form_tag%>
		
	<% elsif (@module_name == 'ProjectTask')%>
		
		<h2>SugarCRM > Project Task> Show</h2>
			
		<%= start_form_tag({:action => ''},{:class => 'appform'}) %>
			<fieldset>
				
				<h3>The details are as following</h3>
				
				<input class="f-name" type="hidden" name="name" required="true" value="<%=@name%>" size="30" / -->
				
				<!-- label for="name"><b>Id :</b -->
			  		<!-- %=@responce% -->
			  	<!-- /label -->
				
				<label for="name"><b>Project Name :</b>
					<%=@project_name%>
			  	</label>
			  	
			  	<label for="name"><b>Task Name :</b>
					<%=@task_name%>
			  	</label>
				
				
		      	<div class="f-submit-wrap">
		
				<%if(canRequestLink("integration","todolist"))%>
					<a href="/integration/todolist?node=basecamp&name=<%=@project_name%>&id=<%=params['id']%>" type="button" /><!-- input type="button" value="Browse Project To-do list from Basecamp"/ --><img src='/themes/odotclassic/images/btn_basetask.png' alt=""></a>
				<%end%>
						
				<%if(canRequestLink("integration","objectdetail"))%>
					<a href="/integration/objectdetail?node=sugarcrm&name=ProjectTask"><!-- input type="button" value="Browse Project Tasks from SugarCRM"/ --><img src='/themes/odotclassic/images/btn_sugartask.png' alt=""></a>
				<%end%>

				<!-- %if(canRequestLink("integration","browse_objects"))% -->
					<!-- a href="/integration/browse_objects?node=sugarcrm" type="button" /><input type="button" value="Browse Objects of SugarCRM"/></a -->
				<!-- %end% -->
	  		
	  			</div>
			  	
			</fieldset>
		<%=end_form_tag%>

	<%end%>		
</div>  	